import request from "@/utils/requestMd5";

export function storage_index(params) {
  return request({
    url: "/storage/index",
    method: "get",
    params
  });
}

export function storage_base(params) {
  return request({
    url: "/storage/base",
    method: "get",
    params
  });
}

export function storage_add(data) {
  return request({
    url: "/storage/add",
    method: "post",
    data: data
  });
}

export function storage_info(params) {
  return request({
    url: "/storage/info",
    method: "get",
    params
  });
}

export function storage_getInventory(params) {
  return request({
    url: "/storage/getInventory",
    method: "get",
    params
  });
}

export function storage_check(data) {
  return request({
    url: "/storage/check",
    method: "post",
    data: data
  });
}

export function storage_deleteList(data) {
  return request({
    url: "/storage/deleteList",
    method: "post",
    data: data
  });
}

// 入库单详情导出
export function export_storage_info(data) {
  return request({
    url: "/export/storage",
    method: "post",
    responseType: "blob",
    data: data
  });
}
